﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using T.ApprovalRecord;
using T.Materials.Domain.Model;

namespace T.Materials.Repository
{
    /// <summary>
    /// 上下文
    /// </summary>
    public class MEFDbContext : DbContext
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="options">选项</param>
        public MEFDbContext(DbContextOptions options) : base(options)
        {
        }

        /// <summary>
        /// 物资与入库
        /// </summary>
        public DbSet<MaterialStore> MaterialStores { get; set; }

        /// <summary>
        /// 物资领用
        /// </summary>
        public DbSet<MaterialRequisition> MaterialRequisitions { get; set; }

        /// <summary>
        /// 物资统计
        /// </summary>
        public DbSet<MaterialStatistics> MaterialStatistics { get; set; }

        /// <summary>
        /// 物品领用存储
        /// </summary>
        public DbSet<ItemRequisition> ItemRequisitions { get; set; }

        /// <summary>
        /// 国家
        /// </summary>
        public DbSet<Country> Countries { get; set; }

        /// <summary>
        /// 省/州
        /// </summary>
        public DbSet<Economize> Economizes { get; set; }


        /// <summary>
        /// 存储物资领用
        /// </summary>
        public DbSet<StorageMaterials> StorageMaterials { get; set; }

        /// <summary>
        /// 审批记录
        /// </summary>
        public DbSet<ApprovalRecordd> ApprovalRecordds { get; set; }

        public DbSet<MApproval> MApprovalS { get; set; }

    }
}
